import request from '@/utils/request'

// 查询文物信息列表
export function listArtifact(query) {
  return request({
    url: '/app/system/artifact/list',
    method: 'get',
    params: query
  })
}

// 查询文物信息详细
export function getArtifact(artifactId) {
  return request({
    url: '/app/system/artifact/' + artifactId,
    method: 'get'
  })
}

// 新增文物信息
export function addArtifact(data) {
  return request({
    url: '/app/system/artifact',
    method: 'post',
    data: data
  })
}

// 修改文物信息
export function updateArtifact(data) {
  return request({
    url: '/app/system/artifact',
    method: 'put',
    data: data
  })
}

// 删除文物信息
export function delArtifact(artifactId) {
  return request({
    url: '/app/system/artifact/' + artifactId,
    method: 'delete'
  })
}
